package tech.aistar.corejava.day06.day06work.Test02;

/**
 * Created by 豆梦寒 on 2019/7/22.
 */
public class Book {
    private String bookName;
    private float bookPrice;

    public Book() {
    }

    public Book(String bookName, float bookPrice) {
        this.bookName = bookName;
        this.bookPrice = bookPrice;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public float getBookPrice() {
        return bookPrice;
    }

    public void setBookPrice(float bookPrice) {
        this.bookPrice = bookPrice;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Produce{");
        sb.append("bookName='").append(bookName).append('\'');
        sb.append(", bookPrice=").append(bookPrice);
        sb.append('}');
        return sb.toString();
    }
}
